/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package connector;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author Jakub Lattenberk, Lat054
 */
public interface Connector {

    public void setName(String name);
    public String getName();
    public void setPass(String pass);
    public String getPass();
    public void setURL(String URL);
    public String getURL();

    public void connect();
    public ResultSet execute(String sql) throws SQLException;
    public void insert(String sql);

    public void addConnectorEventListener(ConnectorEventListener l);
    public void removeConnectorEventListener(ConnectorEventListener l);
}
